package com.grape.testconsumer.impl;

import com.grape.service.api.testconsumer.ITestConsumerService;
import com.grape.testconsumer.fegin.TestConsumerFegin;
import com.grape.testproducer.TestProducer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:服务消费者
 * @author: myx
 * @date: 2019-05-25
 * Copyright © 2019-grape. All rights reserved.
 */
@RestController
public class TestConsumerImpl implements ITestConsumerService {
    @Autowired
    private TestConsumerFegin testConsumerFegin;

    @Override
    public TestProducer getTestProducer(String name) {
        return testConsumerFegin.getTestProducer(name);
    }
}
